const router = require('koa-router')();
//引入controller里类管理的路由回调函数
const indexController = require('../controllers/index');

//将回调函数抽象到controller目录里管理
router.get('/', indexController.index);
router.get('/list/:keyword?', indexController.list);
router.get('/detail/:id', indexController.detail);
router.get('/404', indexController.my404);




module.exports = router